home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-GM / MPW / Examples / HyperXExamples / Makefile < prev   
Encoding:
Makefile  |  1998-12-03  |  2.9 KB  |  133 lines  |  [TEXT/MPS ]

  1. #
  2. # Makefile for HyperCard XCMD examples
  3. #
  4. # This makefile is used to build the examples:
  5. #    LittleDialog
  6. #    Reduce
  7. #
  8. # in each individual source code language.
  9. #
  10. # To use, simply type:
  11. #    Make [AExamples | CExamples | PExamples]
  12. #
  13. # on the command line, then press the Enter key.
  14. #
  15.  
  16. # destination of XCMD or XFCN
  17. Dest        =    "HyperXExample Stack"
  18.  
  19.  
  20. # controls MacsBug symbols
  21. Debug        =    -mbg off
  22.  
  23.  
  24. # Standard libraries required for XCMDs and XFCNs
  25. Libs        =    "{Libraries}"HyperXLib.o "{Libraries}"Interface.o
  26.  
  27.  
  28. # Language-specific libraries required
  29. aLLibs        =    
  30. cLLibs        =    "{CLibraries}"StdCLib.o "{Libraries}"MacRuntime.o
  31. pLLibs        =    "{PLibraries}"Paslib.o
  32.  
  33.  
  34. # Command line options to supply to the compiler
  35. AOptions    =    -w
  36. COptions    =    -b -proto strict
  37. POptions    =    
  38.  
  39.  
  40. # Linker options
  41. LOpts        =    -w -m ENTRYPOINT
  42.  
  43.  
  44. # Resource IDs
  45. XFCNSpec    =    12
  46. XCMDSpec    =    10002
  47.  
  48. #
  49. # Main dependency rules
  50. #
  51. All                ƒƒ    AExamples CExamples PExamples
  52.  
  53. AExamples        ƒƒ    aLittleDialog aReduce
  54.  
  55. CExamples        ƒƒ    cLittleDialog cReduce
  56.  
  57. PExamples        ƒƒ    pLittleDialog pReduce
  58.  
  59. aLittleDialog    ƒ    :AExamples:LittleDialog
  60.  
  61. aReduce            ƒ    :AExamples:Reduce
  62.  
  63. cLittleDialog    ƒ    :CExamples:LittleDialog
  64.  
  65. cReduce            ƒ    :CExamples:Reduce
  66.  
  67. pLittleDialog    ƒ    :PExamples:LittleDialog
  68.  
  69. pReduce            ƒ    :PExamples:Reduce
  70.  
  71. #
  72. # directory dependency rules
  73. #
  74. :AExamples:        ƒ    :AExamples:
  75.  
  76. :CExamples:        ƒ    :CExamples:
  77.  
  78. :PExamples:        ƒ    :PExamples:
  79.  
  80. #
  81. # Dependency rules for AExamples
  82. #
  83. :AExamples:LittleDialog    ƒƒ    :AExamples:LittleDialog.a.o
  84.     Link {LOpts} -rt XCMD={XCMDSpec} -sg LittleDialog -o {Dest} ∂
  85.         :AExamples:LittleDialog.a.o {Libs} {aLLibs}
  86.  
  87. :AExamples:LittleDialog    ƒƒ    LittleDialog.r
  88.     Rez LittleDialog.r -o {Dest} -append
  89.  
  90. :AExamples:LittleDialog    ƒƒ    :AExamples:LittleDialog.a LittleDialog.r
  91.     date >> :AExamples:LittleDialog
  92.  
  93. :AExamples:Reduce        ƒƒ    :AExamples:Reduce.a.o
  94.     Link {LOpts} -rt XFCN={XFCNSpec} -sg Reduce -o {Dest} ∂
  95.         :AExamples:Reduce.a.o {Libs} {LLibs}
  96.     date >> :AExamples:Reduce
  97.  
  98. #
  99. # Dependency rules for CExamples
  100. #
  101. :CExamples:LittleDialog    ƒƒ    :CExamples:LittleDialog.c.o
  102.     Link {LOpts} -rt XCMD={XCMDSpec} -sg LittleDialog -o {Dest} ∂
  103.         :CExamples:LittleDialog.c.o {Libs} {cLLibs}
  104.  
  105. :CExamples:LittleDialog    ƒƒ    LittleDialog.r
  106.     Rez LittleDialog.r -o {Dest} -append
  107.  
  108. :CExamples:LittleDialog    ƒƒ    :CExamples:LittleDialog.c LittleDialog.r
  109.     date >> :CExamples:LittleDialog
  110.  
  111. :CExamples:Reduce            ƒƒ    :CExamples:Reduce.c.o
  112.     Link {LOpts} -rt XFCN={XFCNSpec} -sg Reduce -o {Dest} ∂
  113.         :CExamples:Reduce.c.o {Libs} {cLLibs}
  114.     date >> :CExamples:Reduce
  115.  
  116. #
  117. # Dependency rules for PExamples
  118. #
  119. :PExamples:LittleDialog    ƒƒ    :PExamples:LittleDialog.p.o
  120.     Link {LOpts} -rt XCMD={XCMDSpec} -sg LittleDialog -o {Dest} ∂
  121.         :PExamples:LittleDialog.p.o {Libs} {pLLibs}
  122.  
  123. :PExamples:LittleDialog    ƒƒ    LittleDialog.r
  124.     Rez LittleDialog.r -o {Dest} -append
  125.  
  126. :PExamples:LittleDialog    ƒƒ    :PExamples:LittleDialog.p LittleDialog.r
  127.     date >> :PExamples:LittleDialog
  128.  
  129. :PExamples:Reduce        ƒƒ    :PExamples:Reduce.p.o
  130.     Link {LOpts} -rt XFCN={XFCNSpec} -sg Reduce -o {Dest} ∂
  131.         :PExamples:Reduce.p.o {Libs} {pLLibs}
  132.     date >> :PExamples:Reduce
  133.